//
//  AudioManager.h
//  CardWarrior
//
//  Created by Tekka Xie on 12-4-19.
//  Copyright (c) 2012年 Tencent. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface AudioManager : NSObject<AVAudioPlayerDelegate>

@property(strong, nonatomic) AVAudioPlayer* player;

@property (nonatomic) SystemSoundID mCardoutID;
@property (nonatomic) SystemSoundID mCardbackID;
@property (nonatomic) SystemSoundID mCardscoreID;
@property (nonatomic) SystemSoundID mBackID;
@property (nonatomic) SystemSoundID mConfirmID;
@property (nonatomic) SystemSoundID mSelectID;
@property (nonatomic) SystemSoundID mSlideID;
@property (nonatomic) SystemSoundID mStartvsID;

- (id)init;
+ (id)sharedInstance;

- (void)PlayBGM:(NSString*)bgmFileName;
- (void)EnableBGM;
- (void)DisableBGM;
- (void)SwithBGMState;

- (void)PlaySFX:(NSString*)sfxFileName;
- (void)EnableSFX;
- (void)DisableSFX;
- (void)SwithSFXState;

@end
